Associated merge request:
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3211
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3026>
MetaWindow *window,
ShellTrayIcon *tray_icon)
{
- Window xwindow = meta_window_get_xwindow (window);
+ MetaX11Display *x11_display = meta_display_get_x11_display (display);
+ Window xwindow = meta_x11_display_lookup_xwindow (x11_display, window);
if (tray_icon->tray_child &&
xwindow == na_xembed_get_socket_window (NA_XEMBED (tray_icon->tray_child)))